<template>
    <el-dialog :title="data.title" :visible.sync="dialog">
        <el-form label-width="150px">
            <el-row>
                <el-col v-for="(item,index) in data.list" :span="item.size" :key="index">


                    <el-form-item :label="item.label"><span v-if="item.type=='text'">{{row[item.model]}}</span> <span
                        v-if="item.type=='img'"><img :src="row[item.model]" alt="" style="width: 100%"
                                                     v-if="row[item.model]"></span></el-form-item>
                </el-col>
            </el-row>
        </el-form>
    </el-dialog>
</template>

<script>
    export default {
        name: "dialogWrap",
        props: ["data", "row"],
        data() {
            return {
                dialog: false
            }
        }
    }
</script>

<style scoped>

</style>
